package com.zhuoyue.system.domain.po;

import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author zhanghui
 * @date 2021/9/22 16:19
 */
@Data
public class PushBody {
    /**
     * 推送平台,(all, android, ios)
     */
    private String platform;

    /**
     * 推送目标
     * registration_id, JSON Array, 一次最多1000
     * "registration_id": ["1a1018970a7ede868b6", "140fe1da9e7451275bb"]
     */
    private Map<String, List<String>> audience;

    private PushNotification notification;

    private PushOptions options;

    public PushBody() {
        this.notification = new PushNotification();
        this.options = new PushOptions();
    }
}
